package com.yuanfengerp.goodsInfoManage.servicer;

import com.yuanfengerp.goodsInfoManage.model.ProductManagement;
import com.yuanfengerp.publicUtil.Result;

import java.util.ArrayList;
import java.util.Map;

public interface IProductService {
    //查询所有商品
    Result<ArrayList> selectAllProduct( Map<String ,Object> params );
    //新增商品
    Result<ProductManagement> insertProduct(ProductManagement productManagement);
    //通过ID查询商品信息
    Result<ProductManagement> selectProductById(String productManagementId);
    //通过ID修改商品信息
    Result<ProductManagement> updateProduct(ProductManagement productManagement);
    //通过名称查询商品信息——新增订单时用
    Result<ProductManagement> selectProductByName(String productManagementName);
}
